
import request from '@/utils/request'
export function book(room,path){
    
    return request({
        url:'/order/'+path+'/book',
        method:'post',
        data: room
        
    })
}

export function getResult(room){
    console.log(room.room_id)
    return request({
        url:'/order/getResult',
        method:'post',
        data: room
    })}

export function getOrderByUID(){
   
    return request({
        url:'/order/getOrderByUID',
        method:'get',
        
    })}
    // getOrderList
    export function getOrderList(){
   
        return request({
            url:'/order/getOrderList',
            method:'get',
            
        })}

export function getSeckillPath(room_id,captcha){
    
   
        return request({
            url:'/order/getPath/'+room_id,
            method:'GET',
        //    params:{
        //     "captcha":captcha}
         params:{
            captcha:captcha
        }
            
            
        })
}

export function getCaptchaUrl(room_id){
    
   
    return request({
        url:'/captcha/'+room_id+`?t=`+new Date().getTime(),
        method:'get',
        responseType:"blob"
    })
}